package com.yanqu.road.logic.bussiness.player.activity;

import com.yanqu.road.entity.activity.stronghold.StrongholdEliminateDefendPatrons;
import com.yanqu.road.entity.activity.stronghold.StrongholdItemDonate;
import com.yanqu.road.entity.activity.stronghold.StrongholdSilverDonate;
import com.yanqu.road.entity.activity.stronghold.StrongholdUnionBase;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class StrongholdWarDonateBusiness {
    public static Map<String, Map<Long, StrongholdSilverDonate>> getSilverDonate(int activityId) {
        return DaoHelper.getStrongholdWarSilverDonateDaoImpl().getStrongholdSilverDonate(activityId);
    }

    public static boolean addSilverDonate(StrongholdSilverDonate donate) {
        return DaoHelper.getStrongholdWarSilverDonateDaoImpl().add(donate);
    }

    public static boolean updateSilverDonate(StrongholdSilverDonate donate) {
        return DaoHelper.getStrongholdWarSilverDonateDaoImpl().update(donate);
    }

    public static  Map<String, StrongholdUnionBase> getUnionItemDonate(int activityId) {
        return DaoHelper.getStrongholdUnionBaseDaoImpl().getStrongholdUnionBase(activityId);
    }

    public static boolean addUnionItemDonate(StrongholdUnionBase data) {
        return DaoHelper.getStrongholdUnionBaseDaoImpl().add(data);
    }

    public static boolean updateUnionItemDonate(StrongholdUnionBase data) {
        return DaoHelper.getStrongholdUnionBaseDaoImpl().update(data);
    }

    public static boolean addUserItemDonate(StrongholdItemDonate donate) {
        return DaoHelper.getStrongholdItemDonateDaoImpl().add(donate);
    }

    public static boolean updateUserItemDonate(StrongholdItemDonate donate) {
        return DaoHelper.getStrongholdItemDonateDaoImpl().update(donate);
    }

    public static Map<String, Map<Long, Map<Integer,StrongholdItemDonate>>> getStrongholdUserItemDonate(int activityId) {
        return DaoHelper.getStrongholdItemDonateDaoImpl().getStrongholdItemDonate(activityId);
    }

}
